﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Web;
using DO.Clustering;

namespace SVC.Clustering
{
    [ServiceContract(Namespace = "")]
    public interface IClusteringService
    {
        [OperationContract]
        DocumentClusteringOutput ClusterDocs(Guid ticket, DocumentClusteringInstruction instruction);

        [OperationContract]
        List<string> GetClusteringResultNames
            (
            string connName, string resultTbl, string taskField);

        [OperationContract]
        DocumentClusteringOutput GetClusteringOutput(
            string connName, string resultTbl, string taskField,
            string dataField, string taskName);

        [OperationContract]
        void DeleteClusteringResult(
            string connStr, string resultTbl, string taskField,
            string dataField, string taskName);

        [OperationContract]
        void RenameClusteringResult
            (
            string connStr, string resultTable,
            string taskField, string oldName, string newName);
    }
}
